<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/10/16
  Time: 11:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <link type="text/css" rel="stylesheet" href="static/css/style.css">
    <style type="text/css">
        .a {
            width: 80vw;
            height: 550px;
            margin: 0 auto;
            position: relative;
            top: 50px;
        }

    </style>
</head>
<body>
<div class="a">
    <form action="TeacherServlet">
        <input type="hidden" name="action" value="${empty requestScope.teacher.id?"saveTeacher":"updateTeacher"}">
        <input type="hidden" name="id" value="${requestScope.teacher.id}">
        <table align="center" class="table table-hover">
            <thead>
            <td colspan="7" align="center">教师信息修改</td>
            </thead>
            <tr>
                <td>id</td>
                <td>uid</td>
                <td>name</td>
                <td>sex</td>
                <td>age</td>
                <td>pwd</td>
                <td colspan="2">操作</td>
            </tr>
            <tr>
                <td>${requestScope.teacher.id}</td>
                <td><input name="uId" type="text" value="${requestScope.teacher.uId}"></td>
                <td><input name="name" type="text" value="${requestScope.teacher.name}"></td>
                <td><input name="sex" type="text" value="${requestScope.teacher.sex}"></td>
                <td><input name="age" type="text" value="${requestScope.teacher.age}"></td>
                <td><input name="pwd" type="text" value="${requestScope.teacher.pwd}"></td>
                <td><input type="submit" value="提交"/></td>
            </tr>

        </table>
    </form>
</div>

</body>
</html>
